package com.meixun.xuanke.user.config;

import com.meixun.xuanke.user.service.UserService;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class initConfig implements ApplicationRunner {
    @Resource
    UserService userService;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        userService.initBySchool("7");
        userService.initBySchool("42");
    }
}
